package com.design.mode.prototype;

import javax.swing.*;

/**
 * @ClassName CopySimilar
 * @Description TODO
 * @Author xiongchao
 * @Date 2020/9/28 13:39
 **/
public class CopySimilar extends JPanel implements Cloneable {

    private static final long serialVersionUID = 5543049531872119328L;

    public CopySimilar(){
        JLabel label = new JLabel(new ImageIcon("E:\\图标库\\发现 (1).png"));
        this.add(label);
    }

    public Object clone(){
        CopySimilar copy = null;

        try {
            copy = (CopySimilar) super.clone();
        } catch (CloneNotSupportedException e) {
            System.out.println("copy 失败");
            e.printStackTrace();
        }
        return  copy;
    }
}
